.. _ocastringsensor: 1.1.2.1.12 OcaStringSensor =========================== Class Hierarchy: :ref:`OcaRoot ` : :ref:`OcaWorker ` : :ref:`OcaSensor ` : :ref:`OcaBasicSensor ` : :ref:`OcaStringSensor ` .. cpp:class:: OcaStringSensor: OcaBasicSensor UTF-8 string sensor. **Properties**: .. _ocastringsensor_classid: .. cpp:member:: static const OcaClassID ClassID = "1.1.2.1.12" Number that uniquely identifies the class. Note that this differs from the object number, which identifies the instantiated object. This property is an override of the **OcaRoot** property. This property has id ``1.1``. .. _ocastringsensor_classversion: .. cpp:member:: static const OcaClassVersionNumber ClassVersion = 3 Identifies the interface version of the class. Any change to the class definition leads to a higher class version. This property is an override of the **OcaRoot** property. This property has id ``1.2``. .. _ocastringsensor_maxlen: .. cpp:member:: OcaUint16 MaxLen Maximum length of the returned string. May be readonly in some implementations. This property has id ``5.2``. .. _ocastringsensor_reading: .. cpp:member:: OcaString Reading The string. New name as of v3 of this class. This property has id ``5.1``. Properties inherited from :ref:`ocabasicsensor`: - :cpp:texpr:`OcaClassID` :ref:`OcaRoot::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaRoot::ClassVersion ` - :cpp:texpr:`OcaBoolean` :ref:`OcaRoot::Lockable ` - :cpp:texpr:`OcaLockState` :ref:`OcaRoot::LockState ` - :cpp:texpr:`OcaONo` :ref:`OcaRoot::ObjectNumber ` - :cpp:texpr:`OcaString` :ref:`OcaRoot::Role ` - :cpp:texpr:`OcaClassID` :ref:`OcaWorker::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaWorker::ClassVersion ` - :cpp:texpr:`OcaBoolean` :ref:`OcaWorker::Enabled ` - :cpp:texpr:`OcaString` :ref:`OcaWorker::Label ` - :cpp:texpr:`OcaTimeInterval` :ref:`OcaWorker::Latency ` - :cpp:texpr:`OcaONo` :ref:`OcaWorker::Owner ` - :cpp:texpr:`OcaMap` :ref:`OcaWorker::PortClockMap ` - :cpp:texpr:`OcaList` :ref:`OcaWorker::Ports ` - :cpp:texpr:`OcaClassID` :ref:`OcaSensor::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaSensor::ClassVersion ` - :cpp:texpr:`OcaSensorReadingState` :ref:`OcaSensor::ReadingState ` - :cpp:texpr:`OcaClassID` :ref:`OcaBasicSensor::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaBasicSensor::ClassVersion ` **Methods**: .. _ocastringsensor_getreading: .. cpp:function:: OcaStatus GetReading(OcaString &Reading) Gets the entire string. This method has id ``5.1``. - :cpp:expr:`Reading`: Output parameter. .. _ocastringsensor_getmaxlen: .. cpp:function:: OcaStatus GetMaxLen(OcaUint16 &maxLen) Gets the maximum number of bytes that may be returned. This method has id ``5.2``. - :cpp:expr:`maxLen`: Output parameter. .. _ocastringsensor_setmaxlen: .. cpp:function:: OcaStatus SetMaxLen(OcaUint16 maxLen) Sets the maximum number of bytes that the object may return. This method has id ``5.3``. - :cpp:expr:`maxLen`: Input parameter. Methods inherited from :ref:`ocabasicsensor`: - :ref:`OcaBasicSensor::GetClassIdentification ` - :ref:`OcaBasicSensor::GetLockable ` - :ref:`OcaBasicSensor::GetLockState ` - :ref:`OcaBasicSensor::GetRole ` - :ref:`OcaBasicSensor::SetLockNoWrite ` - :ref:`OcaBasicSensor::SetLockNoReadWrite ` - :ref:`OcaBasicSensor::Unlock ` - :ref:`OcaBasicSensor::AddPort ` - :ref:`OcaBasicSensor::DeletePort ` - :ref:`OcaBasicSensor::DeletePortClockMapEntry ` - :ref:`OcaBasicSensor::GetEnabled ` - :ref:`OcaBasicSensor::GetLabel ` - :ref:`OcaBasicSensor::GetLatency ` - :ref:`OcaBasicSensor::GetOwner ` - :ref:`OcaBasicSensor::GetPath ` - :ref:`OcaBasicSensor::GetPortClockMap ` - :ref:`OcaBasicSensor::GetPortClockMapEntry ` - :ref:`OcaBasicSensor::GetPortName ` - :ref:`OcaBasicSensor::GetPorts ` - :ref:`OcaBasicSensor::SetEnabled ` - :ref:`OcaBasicSensor::SetLabel ` - :ref:`OcaBasicSensor::SetLatency ` - :ref:`OcaBasicSensor::SetPortClockMap ` - :ref:`OcaBasicSensor::SetPortClockMapEntry ` - :ref:`OcaBasicSensor::SetPortName ` - :ref:`OcaBasicSensor::GetReadingState `